
<link th:href="@{/styles/imageselect.css}" rel="stylesheet" type="text/css"/>

<script th:src="@{/scripts/imageselect.js}"></script>

<div class="addInfBtn">
    <h3 class="itemTit"><span>电影信息</span></h3>
    <table class="addNewInfList">
        <tr>
            <th>名称</th>
            <td width="240"><input class="inp-list w-200 clear-mr f-left"
                                   type="text" th:value="${movie.name}"
                                   id="name" name="name" maxlength="16"/></td>
            <th>日期</th>
            <td>
                <input onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"
                       type="text" class="inp-list w-200 clear-mr f-left"
                       th:value="${movie.date} ? ${#dates.format(movie.date,'yyyy-MM-dd HH:mm:ss')} :''"
                       id="date" name="date"/>
            </td>
        </tr>

        <tr>
            <th>剧照</th>
            <td width="240">
                <select name="path" id="path">
                    <option th:value="${movie.path}"
                            th:text="${movie.path}">
                    </option>
                </select>
            </td>

            <th>演员 饰 角色</th>
            <td width="240">
                <ul>
                    <li th:each="role:${movie.roles}"
                        th:text="${role.actor.name}+' 饰 '+${role.name}"></li>
                </ul>
            </td>
        </tr>
    </table>
    <div class="bottomBtnBox">
        <a class="btn-93X38 backBtn" href="javascript:closeDialog(0)">返回</a>
    </div>
</div>

<script type="text/javascript">
    $(document).ready(function () {
        $('select[name=path]').ImageSelect({dropdownWidth: 425});
    });
</script>